 <meta charset="utf-8">
 <div class="card card-primary" id="app_SolutionConfigRecord_edit" style="max-width: 1200px;" > 
 
     <form role="form"  id="editForm" >
            <div class="card-body"> 
			    
					
					<div class="form-group" >
	                  <label for="name" class="control-label"></label>
	                  <input type="text" v-model="solutionConfigRecord.id" class="form-control"  required="required"/>
	                </div>
					
					<div class="form-group" >
	                  <label for="name" class="control-label">所属解决方案</label>
	                  <input type="text" v-model="solutionConfigRecord.solutionId" class="form-control"  required="required"/>
	                </div>
					
					<div class="form-group" >
	                  <label for="name" class="control-label">配置设备</label>
	                  <input type="text" v-model="solutionConfigRecord.deviceId" class="form-control"  required="required"/>
	                </div>
					
					<div class="form-group" >
	                  <label for="name" class="control-label">状态D_#0未推送，1未确认，2已确认，3放弃#</label>
	                  <input type="text" v-model="solutionConfigRecord.status" class="form-control"  required="required"/>
	                </div>
					
					<div class="form-group" >
	                  <label for="name" class="control-label">重试次数</label>
	                  <input type="text" v-model="solutionConfigRecord.retryTimes" class="form-control"  required="required"/>
	                </div>
             
            </div>
            <div class="form-group" style="padding-right: 15px;padding-left: 15px;">
                 <button type="button" class="btn btn-light" v-on:click="cancel">取消</button>
                 <button type="button" class="btn btn-info float-right"  v-on:click="edit">提交</button>
              </div> 
       </form>

<script type="text/javascript">
var news= new Vue({
    el: '#app_SolutionConfigRecord_edit',
    data: {
    	solutionConfigRecord:{
			 id: null,
			 solutionId: null,
			 deviceId: null,
			 status: null,
			 retryTimes: null,
    	},
    	bus:new Vue()
     },
     mounted:function(){
    	 var _this=this;
     },
     methods: {
    	 edit: function () {
    	    	if($("#editForm").valid()){
    	    		var _this=this;
    	    		var url="/xzy/solutionConfigRecord/createSolutionConfigRecord";
    	    		zfesAjax.ajaxJson(url,_this.solutionConfigRecord, function(data){
    	    			alertSwal.successText(data.message);
    	        		 layer.close(layer.index);
    	        	 })
    	    		
    	    	}
    	    },
    	    cancel: function(){
    	    	 layer.close(layer.index);
    	    }
    }
});
</script>
</div>